package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生信息对象 student_info
 *
 * @author ltr
 * @date 2024-10-21
 */
public class StudentInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学生信息ID */
    private Long studentId;

    /** 关联用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 学号 */
    @Excel(name = "学号")
    private String studentNo;

    /** 年级 */
    @Excel(name = "年级")
    private String grade;

    /** 专业 */
    @Excel(name = "专业")
    private String major;

    /** 班级 */
    @Excel(name = "班级")
    private String className;

    /** 绩点 */
    @Excel(name = "绩点")
    private BigDecimal gpa;

    /** 技术栈（JSON格式） */
    private String techStack;

    /** 联系邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 个人简介 */
    private String personalIntro;

    /** 关联的用户名（不存数据库，用于显示） */
    private String userName;

    /** 关联的用户昵称（不存数据库，用于显示） */
    private String nickName;

    public void setStudentId(Long studentId)
    {
        this.studentId = studentId;
    }

    public Long getStudentId()
    {
        return studentId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setStudentNo(String studentNo)
    {
        this.studentNo = studentNo;
    }

    public String getStudentNo()
    {
        return studentNo;
    }

    public void setGrade(String grade)
    {
        this.grade = grade;
    }

    public String getGrade()
    {
        return grade;
    }

    public void setMajor(String major)
    {
        this.major = major;
    }

    public String getMajor()
    {
        return major;
    }

    public void setClassName(String className)
    {
        this.className = className;
    }

    public String getClassName()
    {
        return className;
    }

    public void setGpa(BigDecimal gpa)
    {
        this.gpa = gpa;
    }

    public BigDecimal getGpa()
    {
        return gpa;
    }

    public void setTechStack(String techStack)
    {
        this.techStack = techStack;
    }

    public String getTechStack()
    {
        return techStack;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }

    public void setPersonalIntro(String personalIntro)
    {
        this.personalIntro = personalIntro;
    }

    public String getPersonalIntro()
    {
        return personalIntro;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("studentId", getStudentId())
                .append("userId", getUserId())
                .append("studentNo", getStudentNo())
                .append("grade", getGrade())
                .append("major", getMajor())
                .append("className", getClassName())
                .append("gpa", getGpa())
                .append("techStack", getTechStack())
                .append("email", getEmail())
                .append("personalIntro", getPersonalIntro())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("remark", getRemark())
                .toString();
    }
}